from collections import Counter

a = 'sdiajojdaosijdoisa,djjoisajdioasjdioasoidj,yweqwoqiyrioqw,x'

res = Counter(a)

print(res)